import { createApi } from 'utils/requset'

/**
 * 获取活动信息根据来源
 * @param data
 * @returns
 */
export const getSource = (id: { id: any }) =>
  createApi(`/clues/activity/listselect/${id}`, 'GET')

/**
 * 添加线索
 * @param data
 * @returns
 */
export const addClue = (data: any) => createApi(`/clues/clue`, 'POST', data)

/**
 * 线索数据
 * @param data
 * @returns
 */
export const clueList = (data?: any) =>
  createApi(`/clues/clue/list`, 'GET', data)
